import Index from "../pages/Index.vue";
import Team from "../pages/team/TeamPage.vue";
import User from "../pages/user/UserPage.vue";
import Search from "../pages/SearchPage.vue";
import Edit from "../pages/user/UserEditpage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import Login from "../pages/user/UserLoginPage.vue";
import TeamAddPage from "../pages/team/TeamAddPage.vue";
import TeamUpdatePage from "../pages/team/TeamUpdatePage.vue";
import UserUpdatePage from "../pages/user/UserUpdatePage.vue";
import UserTeamJoinPage from "../pages/user/UserTeamJoinPage.vue";
import UserTeamCreatePage from "../pages/user/UserTeamCreatePage.vue";
import UserSignUpPage from "../pages/user/UserRegisterPage.vue";
import ForgetPasswordPage from "../pages/ForgetPasswordPage.vue";
import UserDetailPage from "../pages/user/UserDetailPage.vue";
import TeamDetailPage from "../pages/team/TeamDetailPage.vue";
import Friend from "../pages/friend/FriendPage.vue";
import ChatPage from "../pages/chat/ChatPage.vue";
import MessagePage from "../pages/chat/MessagePage.vue";

const routes =[
    { path: '/', component: Index,title:"病友交流室" , meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    {path:'/team',component: Team ,title:"找队伍", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user', component: User ,title:"个人信息", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/search', component: Search ,title:"找伙伴", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/edit', component: Edit ,title:"编辑信息", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/list', component: SearchResultPage ,title:"用户列表", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/login', component: Login ,title:"登录", meta: {showBottom: false, showHeader: false, showBack: false,showPop:true,},},
    { path: '/team/add', component: TeamAddPage ,title:"创建队伍", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/team/update', component: TeamUpdatePage ,title:"更新队伍", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/update', component: UserUpdatePage,title:"更新信息" , meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/team/join', component: UserTeamJoinPage,title:"加入队伍" , meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/team/create', component: UserTeamCreatePage,title:"我的队伍", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/user/signup', component: UserSignUpPage,title:"用户注册" , meta: {showBottom: false, showHeader: false, showBack: false,showPop:true},},
    { path: '/forget', component: ForgetPasswordPage,title:"忘记密码", meta: {showBottom: false, showHeader: false, showBack: false,showPop:true},},
    { path: '/user/detail', component: UserDetailPage,title:"用户详情", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/team/info', component: TeamDetailPage,title:"队伍详情", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/friend', component: Friend,title:"好友信息", meta: {showBottom: true, showHeader: true, showBack: true,showPop:true},},
    { path: '/chat', title:'聊天界面', component: ChatPage, meta: {showBottom: false, showHeader: false, showBack: false,showPop:false},name:"userChat"},
/*    {
        name: 'userChat',
        path: '/user/chat/:toUserId/:receiveType/:status',
        title: '聊天页面',
        meta: {showBottom: false, showHeader: false, showBack: false},
        component: UserChatPage
    },
    {
        path: '/message',
        title: '我的消息',
        meta: {showBottom: true, showHeader: true, showBack: false},
        component: MessagePage
    },*/
    {
        path: '/message',
        title: '我的消息',
        meta: {showBottom: true, showHeader: true, showBack: false},
        component: MessagePage
    },
]
export default routes;